######################################################## 
## ~W: hӷ|is|Uq
## ~@: ycl6 < ycl6@users.sourceforge.net > (Y.C. LIN) http://macphpbbmod.sourceforge.net/
## ~yz: w˳oӥ~, s|Uq|Hbx]w| (̦n޲z)
## ~: 1.0.0
## 
## w: Easy
## wˮɶ: 3 Minutes 
##
## ݭns誺ɮ: 3
##	includes/usercp_register.php
##	language/lang_chinese_traditional_taiwan/lang_admin.php
##	templates/subSilver/admin/board_config_body.tpl
##
## [ɮ: 0
##
## vn: http://opensource.org/licenses/gpl-license.php GNU Public License v2 
################################################################# 
## ѩwWҶq, ˬd: http://www.phpbb.com/mods/
## O_~̷s. Mb[J~ƮweA~wggLˬd
## OoäOҥ~SwWD. 
## 󤣦b~Ʈw (http://www.phpbb.com/mods/) ~
## N|b phpbb.com QתO䴩 
############################################################## 
## @̯d:
##	~b 2.0.17 WչL. iH EasyMOD 0.2.1a Ӧw˦~
##
##	w "޲zis|Uq"
## 
############################################################## 
## MOD History: 
##
##   2005-10-01 -  1.0.0
##      - oG
## 
############################################################## 
## bW[~e, аȥƥҦݭnק諸ɮ
##############################################################

# 
#-----[ } ]------------------------------------------ 
# 
language/lang_chinese_traditional_taiwan/lang_admin.php

# 
#-----[ M ]------------------------------------------ 
#
$lang['Enable_notify_admin_new_reg_userid'] = '޲z| ID';
$lang['Enable_notify_admin_new_reg_userid_explain'] = 'Jwq| (userid) ID';

# 
#-----[ N ]------------------------------------------ 
#
$lang['Enable_notify_admin_new_reg_userid'] = '޲z| ID(s)';
$lang['Enable_notify_admin_new_reg_userid_explain'] = 'Jwq| (userid) ID(s).<br />pGJh ID, дJ ID.';

# 
#-----[ } ]------------------------------------------ 
# 
includes/usercp_register.php

# 
#-----[ M ]------------------------------------------ 
#
			if ( $board_config['notify_admin_new_reg'] )
			{
				$admin_profile = array();
				$admin_profile = get_userdata($board_config['notify_admin_new_reg_userid']);

				$use_template = (empty($admin_profile)) ? $board_config['default_lang'] : $admin_profile['user_lang'];
				$email_address = (empty($admin_profile)) ? $board_config['board_email'] : $admin_profile['user_email'];
				$admin_name = (empty($admin_profile)) ? $lang['Administrator'] : $admin_profile['username'];
				
				include_once($phpbb_root_path . 'includes/emailer.'.$phpEx);
				$emailer = new emailer($board_config['smtp_delivery']);

				$emailer->from($board_config['board_email']);
				$emailer->replyto($board_config['board_email']);

				$emailer->use_template('notify_admin_new_reg', stripslashes($use_template));
				$emailer->email_address($email_address);
				$emailer->set_subject($lang['Notify_admin_new_reg']);

				$emailer->assign_vars(array(
					'ADMIN_NAME' => $admin_name,
					'SITENAME' => $board_config['sitename'],
					'USER_NAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)),
					'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',
					'USER_PROFILE' => $server_url . '?mode=viewprofile&' . POST_USERS_URL . '=' . $user_id)
				);
				$emailer->send();
				$emailer->reset();
			}

# 
#-----[ N ]------------------------------------------ 
#
			if ( $board_config['notify_admin_new_reg'] )
			{
				$userids = explode("\n", $board_config['notify_admin_new_reg_userid']);

				for ($i=0; $i<count($userids); $i++)
				{
					$admin_profile = array();
					$admin_profile = get_userdata(intval($userids[$i]));

					if (!empty($admin_profile))
					{
						$use_template = $admin_profile['user_lang'];
						$email_address = $admin_profile['user_email'];
						$admin_name = $admin_profile['username'];

						include_once($phpbb_root_path . 'includes/emailer.'.$phpEx);
						$emailer = new emailer($board_config['smtp_delivery']);

						$emailer->from($board_config['board_email']);
						$emailer->replyto($board_config['board_email']);

						$emailer->use_template('notify_admin_new_reg', stripslashes($use_template));
						$emailer->email_address($email_address);
						$emailer->set_subject($lang['Notify_admin_new_reg']);

						$emailer->assign_vars(array(
							'ADMIN_NAME' => $admin_name,
							'SITENAME' => $board_config['sitename'],
							'USER_NAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)),
							'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',
							'USER_PROFILE' => $server_url . '?mode=viewprofile&' . POST_USERS_URL . '=' . $user_id)
						);

						$emailer->send();
						$emailer->reset();
					}
				}
			}

# 
#-----[ } ]------------------------------------------ 
# 
templates/subSilver/admin/board_config_body.tpl

# 
#-----[ M ]------------------------------------------ 
#
		<td class="row2"><input class="post" type="text" maxlength="255" name="notify_admin_new_reg_userid" value="{NOTIFY_ADMIN_NEW_REG_USERID}" /></td>

# 
#-----[ N ]------------------------------------------ 
#
		<td class="row2"><textarea name="notify_admin_new_reg_userid" rows="5" cols="30">{NOTIFY_ADMIN_NEW_REG_USERID}</textarea></td>

# 
#-----[ xs/Ҧɮ ]------------------------------------------ 
# 
# ~ץ
